use rbatis::{Error, RBatis};
use rbdc_sqlite::SqliteDriver;

pub async fn init(path:&str) -> Result<RBatis, Error> {
    let rb = RBatis::new();
    let url = path;
    rb.link(SqliteDriver {}, url).await?;
    Ok(rb)
}